package com.education.admin.api.shiro;

import org.apache.shiro.spring.LifecycleBeanPostProcessor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Shiro生命周期实例
 * @author Jason
 * @version 1.0.0
 * @date 2021-11-21 00:52
 */
@Configuration
public class ShiroLifecycleBeanPostProcessorConfig {

    /**
     * Shiro生命周期处理器
     * 之所以把这个类单独提取出来，是为了方便Shiro
     * Bean configuration中进行Autowired实例注入
     * @return
     */
    @Bean
    public LifecycleBeanPostProcessor lifecycleBeanPostProcessor() {
        return new LifecycleBeanPostProcessor();
    }
}
